Creating Trace matrix from multiple modules

I need to create a matrix that dumps to excel. I need to print all attributes from one module and pull in attributes from another module that each object links to. I've looked at several sample scripts but can't seem to get what I need. I just upgraded to 9.3.0.1 and it looks like some dxl has changed (I haven't done dxl for a little while) but simple things like printing out current module name comes up empty or doing a requirements count says 0 but I get no dxl errors. Any help would be appreciated.
SR-ITC - Wed Mar 16 09:31:37 EDT 2011

Re: Creating Trace matrix from multiple modules
llandale - Wed Mar 16 09:42:04 EDT 2011

You should create a view that looks like what you want and then use the normal exporter to output it to Excel. In this case it looks like you'll need either a wizard layout that displays the info you want from the other module.

If you have code that isn't working you will need to post it.

  • Louie

Re: Creating Trace matrix from multiple modules
SR-ITC - Thu Mar 17 11:00:47 EDT 2011

llandale - Wed Mar 16 09:42:04 EDT 2011
You should create a view that looks like what you want and then use the normal exporter to output it to Excel. In this case it looks like you'll need either a wizard layout that displays the info you want from the other module.

If you have code that isn't working you will need to post it.

  • Louie

The code isn't mine so I can't post. How would I create a view to pull in data from multiple modules? Is there a tutorial on this to aid me?

Re: Creating Trace matrix from multiple modules
Mathias Mamsch - Thu Mar 17 11:29:37 EDT 2011

SR-ITC - Thu Mar 17 11:00:47 EDT 2011
The code isn't mine so I can't post. How would I create a view to pull in data from multiple modules? Is there a tutorial on this to aid me?

You need to be more specific. If you have two modules A and B, and the objects of A link to the objects of B then you use the Analysis Wizard to display attributes values from the objects of B in module A or vice versa. The Analysis Wizard (Menu: Analysis / Wizard, which has a pretty good documentation in the help file by the way, which you can access using the "help" button) creates DXL Layout Columns, which are sufficient for exporting, however if you need attributes for scripts, etc. you can convert the Layout DXL to attribute DXL (Menu: Tools / Support Tools).

Printing out the current modules name or getting a requirement count should be the same in DOORS 9.3 as it always was :-)
 

print (fullName current Module) "\n"
int cnt = 0; Object o; for o in (current Module) do { if (o."Requirement" "" != "") cnt++ }
print "Requirements: " cnt "\n"

 


Regards, Mathias

 

 


Mathias Mamsch, IT-QBase GmbH, Consultant for Requirement Engineering and D00RS